<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!doctype html>
<html style="height:100%">
<head>
<meta charset="utf-8">
<title>我的推广金</title>
<link  href="${ctx}/css/box.css" rel="stylesheet">
<link  href="${ctx}/css/brokerage.css" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no">
 
</head>

<body style="height:100%">
<div class="wrap">
    <a href="${ctx}/agent/brokerageList">
	    <div class="income">
	        <div class="blank">
	            <p>我的推广金（元）</p>
	            <p>${agentBrokerage.DCharge}</p>
	        </div>
	    </div>
    </a>
    <a href="${ctx}/agent/brokerageList">
    <div class="income-yes">
        <div class="blank">
            <p>昨日推广金（元）</p>
            <p>${agentBrokerage.DYesterdayCharge}</p>
        </div>
    </div>
    </a>
    <a href="${ctx}/agent/brokerageList">
	    <div class="extend">
	        <div class="blank">
	            <p>累计收益</p>
	            <p>${agentBrokerage.DTotalCharge}</p>
	        </div>
	    </div>
    </a> 
    <a href="${ctx}/agent/brokerageDrawList">
	    <div class="extend">
	        <div class="blank">
	            <p>累计提取</p>
	            <p>${agentBrokerage.DTotalDram}</p>
	        </div>
	    </div>
    </a>
    <c:if test="${agentBrokerage.lockCharge > 0}">
    <a href="${ctx}/agent/brokerageDrawList">
        <div class="extend">
            <div class="blank">
                <p>提取审核中</p>
                <p>${agentBrokerage.lockCharge}</p>
            </div>
        </div>
    </a>
    </c:if>
    <div class="take-out">
        <div class="blank">
            <c:if test="${agentBrokerage.lockCharge ==0 }">
                 <a href="${ctx}/agent/brokerageDraw">推广金提现</a>
            </c:if>
             <c:if test="${agentBrokerage.lockCharge > 0 }">
                 <a href="${ctx}/agent/brokerageDrawList">推广金提现申请中...</a>
            </c:if>
        </div>
    </div>
</div>
</body>
</html>
